package net.learn.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import net.learn.framework.common.entity.BaseEntity;

/**
 * 机构管理
 * 
 * @author lilizhi 762966800@qq.com
 */
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("sys_org")
public class SysOrgEntity extends BaseEntity {
	/**
	 * 上级ID
	 */
	private Long pid;
	/**
	 * cid
	 */
	private String cid;
	/**
	 * uid
	 */
	private String uid;
	/**
	 * 机构名称
	 */
	private String name;
	/**
	 * 机构地址
	 */
	private String addr;
	/**
	 * 排序
	 */
	private Integer sort;

	/**
	 * 上级名称
	 */
	@TableField(exist = false)
	private String parentName;
}